package com.gztms.blogmgnt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gztms.blogmgnt.pojo.Blog;
import com.gztms.utils.ResultUtil;

/**
 * @author Zoey
 * @date 2023/4/22 22:25
 * @Description TODO
 **/
public interface BlogService  extends IService<Blog> {
    ResultUtil addBlog(Blog blog);

    ResultUtil delBlog(Integer id);

    ResultUtil updateBlog(Blog blog);

    ResultUtil getAllBlogs(int pageNum, int pageSize);

    ResultUtil getAllTypes();

    ResultUtil getHotBlogs();

    ResultUtil getBlogList(Integer pageNum, Integer pageSize, Integer type, String title, Integer isUp);

    ResultUtil getBlogDetail(Integer id);

    ResultUtil updateViewCount(Integer id);

    ResultUtil uploadImage(String imgUrl);

    ResultUtil getBlogByUid(Integer pageNum, Integer pageSize, Integer status, String uid);
}
